#include "HttpClientBuilder.h"

#include "httplib.h"

#include <string>

HttpClientBuilder::HttpClientBuilder(const std::string &host, uint16_t port)
{
    m_hostport = host + ":" + std::to_string(port);
}

HttpClientBuilder::~HttpClientBuilder()
{
}

httplib::Client *HttpClientBuilder::build()
{
    auto client = new httplib::Client("http://127.0.0.1:8001");
    // auto client = new httplib::Client(m_hostport);
    client->set_keep_alive(m_keepAlive);
    return client;
}